package cn.stylefeng.guns.sys.modular.system.mapper;

import cn.stylefeng.guns.sys.modular.system.entity.SysCompany;
import cn.stylefeng.guns.sys.modular.system.model.params.SysCompanyParam;
import cn.stylefeng.guns.sys.modular.system.model.result.SysCompanyResult;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 核算主体表 Mapper 接口
 * </p>
 *
 * @author wzh
 * @since 2024-01-08
 */
public interface SysCompanyMapper extends BaseMapper<SysCompany> {

    List<SysCompanyResult> List2(@Param("paramCondition") SysCompanyParam sysCompanyParam);

    /**
     * 获取列表
     *
     * @author wzh
     * @Date 2024-01-08
     */
    List<SysCompanyResult> customList(@Param("paramCondition") SysCompanyParam paramCondition);

    /**
     * 获取map列表
     *
     * @author wzh
     * @Date 2024-01-08
     */
    List<Map<String, Object>> customMapList(@Param("paramCondition") SysCompanyParam paramCondition);

    /**
     * 获取分页实体列表
     *
     * @author wzh
     * @Date 2024-01-08
     */
    Page<SysCompanyResult> customPageList(@Param("page") Page page, @Param("paramCondition") SysCompanyParam paramCondition, @Param("condition") String condition);

    /**
     * 获取分页map列表
     *
     * @author wzh
     * @Date 2024-01-08
     */
    Page<Map<String, Object>> customPageMapList(@Param("page") Page page, @Param("paramCondition") SysCompanyParam paramCondition);

}
